import { createApp } from 'vue'
import ElementPlus  from 'element-plus'
import 'element-plus/dist/index.css'
// import './style.css'
import App from './App.vue'
import store from './store/index.js'
import router from './router/index.js'
// import * as filters from './filters/index.js'

// console.log(filters,'=============')

// Object.keys(filters).forEach(filter =>{
//     // console.log()
//     Vue.filter(filter,filters[filter])
// })

let app = createApp(App)
app.directive('focus',{
    mounted(el){
        el.focus()
    }
})
app.use(router)
app.use(store)
app.use(ElementPlus)
app.mount('#app')
// window.onerror = function(e){    console.log(['https://stackoverflow.com/search?q=[js]+'+e])}